<template>
  <div class="resource-container">
    <iframe scrolling="auto" allowtransparency="true" style="width: 100%;height: 100%;position: absolute;" :src="url" frameborder="0" ></iframe>
  </div>
</template>

<script>
import store from '@/store'
import { getLanguage } from '@/utils/cookies'
export default {
  name: 'Resource',
  components: {},
  data() {
    return {
      url: ''
    }
  },
  created() {
    var urlArray = window.location.href.split('/')
    var url = urlArray[0] + '//' + urlArray[2] + '/resource-center?isolate=merchant'
    url += '&isolate_id=' + store.getters.id
    url += '&token=' + store.getters.token
    url += '&lang=' + getLanguage()
    this.url = url
  },
  methods: {

  }
}
</script>
<style>

</style>
